package com.xc.utils.stock;

import com.xc.utils.DateTimeUtil;

import java.util.Date;
import java.util.Random;

/**
 * @author xiongcan
 * @version 1.0
 * @date 2018/9/27 下午7:58
 */
public class GeneratePosition {


    //  得到持仓的id
    public static String getPositionId(){
        Random random = new Random();
        Integer number = random.nextInt(90000) + 10000;

        String datestr = DateTimeUtil
                .dateToStr(new Date(),"yyyyMMdd");
        return datestr + number;
    }



}
